﻿using System;

namespace RTools_NTS.Util
{
	public class EofToken : Token
	{
		public EofToken() : base(0)
		{
		}

		public EofToken(int line) : base(line)
		{
		}

		public override string ToString()
		{
			return string.Empty;
		}

		public override string ToDebugString()
		{
			return "Eof";
		}

		public override bool Equals(object other)
		{
			return other is EofToken;
		}

		public override string StringValue
		{
			get
			{
				return this.ToString();
			}
		}

		public override int GetHashCode()
		{
			return this.ToString().GetHashCode();
		}
	}
}
